<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			//定义字符集
			//0-9之间的任意一个数
			var reg = /[0-9]/;
			var str = "2015-3-23";
			var result = str.match(reg);
			console.log(result);
		</script>
	</head>
	<body>
	</body>
</html>
